<?php

class Kd_Localize_Factory {

    private static $_translator = NULL;
    private static $_culture = NULL;

    public static function getTranslator() {
        if(is_null(self::$_translator)){
            $class = Kd_Localize_Config::getTranslatorClass();
            self::$_translator = new $class();
        }
        return self::$_translator;
    }

    public static function getCulture(){
        if(is_null(self::$_culture)){
            $class = Kd_Localize_Config::getCultureClass();
            self::$_culture = new $class();
        }
        return self::$_culture;
    }
}